package group2assignone.ucm.manager;

import group2assignone.ucm.UCController;
import group2assignone.view.manager.DeleteFlightView;
import group2assignone.view.manager.ManagerView;

/**
 * use case to cancel deleting a flight
 * @author group2
 */
public class UCDeleteFlightCancel implements UCController {

    private DeleteFlightView deleteView = new DeleteFlightView();

    /**
     * sets view
     * @param dView
     */
    public UCDeleteFlightCancel(DeleteFlightView dView) {
        deleteView = dView;
    }

    @Override
    public void run() {
        deleteView.dispose();
        ManagerView mv = ManagerView.getInstance();
        mv.setVisible(true);
    }
}
